<div id="show_page_left_bar" style="width: 50px;position: fixed;">
    <div style="height: 142px;"></div>
    <div class="web-show-leftbar">
        <a id="collect_icon"
           class="am-icon am-icon-star<?= $collectIconEx ?> web-gray-color"
           onclick="user_collect(this)" ;
           data-collect-id="<?= $workMsg->Id ?>"
           data-collect-type="0"></a>
    </div>
    <div class="web-show-leftbar">
        <a class="am-icon am-icon-comment<?= $commendIconEx ?> web-gray-color"
           data-forward="controller=comment&comment_edit_view=1&reply_id=0&parent_id=<?= $workMsg->Id ?>&parent_type=1"
           onclick="act_content(this)"></a>
    </div>
    <div class="web-show-leftbar">
        <a onclick="$('#weibo_publish').click();" class="am-icon am-icon-weibo web-gray-color"></a>
    </div>
    <div class="web-show-leftbar">
        <a class="am-icon am-icon-weixin web-gray-color"></a>
    </div>
    <?php
    if (isset($_SESSION['user_level']) && $_SESSION['user_level'] >= 90) {
        $userManage = TRUE; //当前用户为管理员
    }
    if (isset($_SESSION['user_id']) && $workMsg->Author == $_SESSION['user_id']) {
        $userAuthor = TRUE; //当前用户为作者
    }
    if (isset($userManage) || isset($userAuthor)) {
        //只有管理员或作者可以编辑
        ?>
        <div class="web-show-leftbar">
            <a class="am-icon am-icon-edit web-gray-color"
               data-forward="controller=work_edit&work_id=<?= $workMsg->Id ?>"
               onclick="top_left_bar_change(1); menu_l_close(); act_content(this)"></a>
        </div>
    <?php }
    if (isset($userManage)) { //只有管理员可以删除 ?>
        <div class="web-show-leftbar">
            <a class="am-icon am-icon-trash web-gray-color"
               onclick="work_dele(<?= $workMsg->Id ?>)"></a>
        </div>
    <?php }
    if (isset($userAuthor)) { //只有作者可以加入专题和发布鞋主秀链接 ?>
        <div class="web-show-leftbar">
            <a class="am-icon am-icon-calendar web-gray-color"
               data-forward="controller=topic_list&list_type=11&work_id=<?php echo $workMsg->Id ?>"
               onclick="act_content(this);"></a>
        </div>
        <div class="web-show-leftbar">
            <a class="am-icon am-icon-camera-retro web-gray-color"
               data-forward="controller=shoe_show&show_url=<?= $workMsg->Id ?>"
               onclick="act_content(this);"></a>
        </div>
    <?php } ?>
    <div class="web-show-leftbar">
        <a class="am-icon am-icon-arrow-up web-gray-color" onclick="$slide_level1.smoothScroll();"></a>
    </div>
</div>
<div style="width: 100%;">
    <div style="width: 50px;height: 50px;" class="web-split-2-left"></div>
    <div class="web-split-2-right">
        <div id="show_content_bar" style="width: 75%;" class="web-split-2-left">
            <div style="margin: 0 auto; width: 85%;">
                <div style="height: 20px"></div>
                <div class="am-vertical-align">
                    <a class="am-text-lg am-icon am-icon-arrow-circle-left am-icon-fw am-vertical-align-middle web-gray-color"
                       onclick="act_back()"></a>
                    <span class="am-text-xs web-gray-color am-vertical-align-middle">当前位置：SNEAKER CUSTOM / <?= $workMsg->Name ?></span>
                </div>
                <div style="height: 10px"></div>
                <div style="height: 40px;">
			        <span class="web-show-tag">
			        <?php
                    if ($workMsg->Type == 1) {
                        echo '定制';
                    } else {
                        echo '自制';
                    }
                    ?>
			    	</span>
                    <b class="web-show-tittle web-tittle-color am-text-default" id="work_show_name"
                       data-work-id="<?= $workMsg->Id ?>"><?= $workMsg->Name ?></b>
                </div>
                <div style="height: 10px"></div>
                <div class="web-gray-color am-text-xs">
                    <i class="am-icon am-icon-clock-o am-icon-fw"></i>&nbsp;<?= $workMsg->ReleaseDate ?>&nbsp;&nbsp;&nbsp;
                    <i id="icon_recommend"
                       class="am-icon am-icon-heart<?= $recommendIconEx ?> am-icon-fw"></i>&nbsp;<span
                            class="work_up_count"><?= $workMsg->UpCount ?></span>&nbsp;&nbsp;&nbsp;
                    <i class="am-icon am-icon-comment<?= $commendIconEx ?> am-icon-fw"></i>&nbsp;<?= $workMsg->CommentCount ?>
                    &nbsp;&nbsp;&nbsp;
                    <i class="am-icon am-icon-eye am-icon-fw"></i>&nbsp;<?= $workMsg->ViewCount ?>
                </div>
                <div style="height: 30px"></div>
                <div>
                    <b class="web-tittle-color">作品介绍：&nbsp;&nbsp;</b><span
                            class="web-main-color"><?= $workMsg->Introd ?></span>
                </div>
                <div style="height: 10px"></div>
                <ul id="work_show_imgs" class="am-list">
                    <?php
                    $workImgList = explode(";", $workMsg->Picture);
                    foreach ($workImgList as $Img) {
                        $workImg = $Img;
                        ?>
                        <li style="padding:15px 0px;">
                            <div class="am-gallery-item">
                                <img src="<?= $CfgPara->httproot ?>/works_pic/<?= $workImg ?>"
                                     alt="" data-rel="<?= $CfgPara->httproot ?>/works_pic/<?= $Img ?>"
                                     width="100%" height="auto"/>
                            </div>
                        </li>
                    <?php } ?>
                </ul>
                <div style="height: 30px"></div>
                <div class="web-main-color">
                    <a class="am-fr web-show-btn" <?php if (isset($InputData['from_topic'])) echo 'data-from-topic="' . $InputData['from_topic'] . '"'; ?>
                       onclick="work_recommand(this);">
                        <i class="am-icon am-icon-heart-o"></i>&nbsp;&nbsp;<span class="web-tittle-color">推荐</span>
                    </a>
                    <span class="am-fr work_up_count"
                          style="padding-top: 4px;padding-right: 10px;padding-left: 10px"><?= $workMsg->UpCount ?></span>
                    <a class="am-fr web-show-btn"
                       data-forward="controller=comment&comment_edit_view=1&reply_id=0&parent_id=<?= $workMsg->Id ?>&parent_type=1"
                       onclick="act_content(this)">
                        <i class="am-icon am-icon-comment-o"></i>&nbsp;&nbsp;<span class="web-tittle-color">评论</span>
                    </a>
                    <span id="comment_count" class="am-fr"
                          style="padding-top: 4px;padding-right: 10px"><?= $workMsg->CommentCount ?></span>
                </div>
                <div style="height: 50px"></div>
                <?php require("{$CfgPara->root}/controller/comment.c.php"); ?>
            </div>
        </div>
        <div id="show_right_bar" class="web-split-2-right web-right-bar" style="clear: right;">
            <div style="height: 50px"></div>
            <?php
            $UserName = $workMsg->UserName;
            $UserAvatar = $workMsg->UserAvatar;
            require("{$CfgPara->root}/view/web/user_view_mini.web.v.php");
            ?>
            <div style="height: 30px"></div>
            <?php require("{$CfgPara->root}/controller/shoe_show.c.php"); ?>
            <div style="height: 30px"></div>
            <?php require("{$CfgPara->root}/controller/work_show_topic_up.c.php"); ?>
        </div>
    </div>
</div>
<script type="text/javascript">
    //将右侧栏高度设置成与内容一致
    setTimeout(set_right_bar_height(), 100);
</script>